<?php
class ModelMessagePosition extends Model {
	public function getSenderPosition($sender_name) {
		$query = $this->db->query("SELECT DISTINCT * FROM " . DB_PREFIX . "config_sender_info mna WHERE mna.sender_name = '" . $sender_name . "' ");
		return $query->row;
	}
	
	public function getAllPosition(){
		
		$query = $this->db->query("SELECT DISTINCT * FROM " . DB_PREFIX . "config_position ");
		return $query->rows;
	}
	
}
?>